import config from "@/config"
import http from "@/utils/request"

export default {
	add: {
		url: `${config.API_URL}/jjUser/add`,
		name: "添加uum",
		post: async function(data){
			return await http.post(this.url, data);
		}
	},
	edit: {
		url: `${config.API_URL}/jjUser/modify`,
		name: "修改uum",
		post: async function(data){
			return await http.post(this.url, data);
		}
	},
	staffEdit: {
		url: `${config.API_URL}/jjUser/staffModify`,
		name: "修改uum",
		post: async function(data){
			return await http.post(this.url, data);
		}
	},
	list: {
		url: `${config.API_URL}/jjOrg/org/getUserManageOrgPage`,
		name: "uum列表",
		get: async function(params){
			return await http.get(this.url, params);
		}
	},
	getJjUsersByOrgNo: {
		url: `${config.API_URL}/jjUser/getJjUsersByOrgNo`,
		name: "查询用户信息",
		get: async function(params){
			return await http.get(this.url, params);
		}
	},
	getJjUsersAndSelfByOrgNo: {
		url: `${config.API_URL}/jjUser/getJjUsersAndSelfByOrgNo`,
		name: "查询用户信息",
		get: async function(params){
			return await http.get(this.url, params);
		}
	},
	getJjUsers: {
		url: `${config.API_URL}/jjUser/getJjUsers`,
		name: "查询用户信息（用户管理）",
		get: async function(params){
			return await http.get(this.url, params);
		}
	},
	comAndOrgTree:{
		url: `${config.API_URL}/jjOrg/org/getComAndOrgTree`,
		name: "获取公司和部门",
		get: async function(){
			return await http.get(this.url);
		}
	},
	comAndOrgTreeResponse:{
		url: `${config.API_URL}/jjOrg/org/getResponseComAndOrgTree`,
		name: "获取公司和部门",
		get: async function(){
			return await http.get(this.url);
		}
	},
	delete: {
		url: `${config.API_URL}/jjUser/delete`,
		name: "删除uum",
		post: async function(params){
			return await http.post(this.url, params);
		}
	}
}
